//
//  InsuranceHistoryTableViewCell.m
//  CPICApp
//
//  Created by sinosoft on 13-5-9.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import "InsuranceHistoryTableViewCell.h"

@implementation InsuranceHistoryTableViewCell
@synthesize lblBeginDate,lblContinueInsDate,lblContinueInsDateTag,lblContinuePolicyNo,lblContinuePolicyNoTag,lblEndDate,lblInsuranceName,lblInsuranceNameTag,lblPolicyNo,lblPolicyNoTag,lblBeginDateTag,lblEndDateTag,lblContinueInsStatus,lblContinueInsStatusTag;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        lblInsuranceNameTag=[[[UILabel alloc]initWithFrame:CGRectMake(4, 3, 42, 21)]autorelease];
        lblInsuranceName=[[[UILabel alloc]initWithFrame:CGRectMake(100, 3, 200, 21)]autorelease];
        lblPolicyNoTag=[[[UILabel alloc]initWithFrame:CGRectMake(4, 25, 56, 21)]autorelease];
        lblPolicyNo=[[[UILabel alloc]initWithFrame:CGRectMake(100, 25, 201, 16)]autorelease];
        lblBeginDateTag=[[[UILabel alloc]initWithFrame:CGRectMake(4, 44, 62, 21)]autorelease];
        lblBeginDate=[[[UILabel alloc]initWithFrame:CGRectMake(100, 44, 75, 21)]autorelease];
        lblEndDateTag=[[[UILabel alloc]initWithFrame:CGRectMake(183, 43, 62, 21)]autorelease];
        lblEndDate=[[[UILabel alloc]initWithFrame:CGRectMake(247, 44, 73, 21)]autorelease];
        lblContinuePolicyNoTag=[[[UILabel alloc]initWithFrame:CGRectMake(4, 67, 74, 15)]autorelease];
        lblContinuePolicyNo=[[[UILabel alloc]initWithFrame:CGRectMake(100, 64, 200, 21)]autorelease];
        lblContinueInsStatusTag=[[[UILabel alloc]initWithFrame:CGRectMake(4, 84, 88, 21)]autorelease];
        lblContinueInsStatus=[[[UILabel alloc]initWithFrame:CGRectMake(100, 84, 170, 19)]autorelease];
        lblContinueInsDateTag=[[[UILabel alloc]initWithFrame:CGRectMake(4, 103, 88, 21)]autorelease];
        lblContinueInsDate=[[[UILabel alloc]initWithFrame:CGRectMake(100, 103, 170, 19)]autorelease];
        
        
        [lblInsuranceNameTag setBackgroundColor:[UIColor clearColor]];
        [lblInsuranceName setBackgroundColor:[UIColor clearColor]];
        [lblPolicyNoTag setBackgroundColor:[UIColor clearColor]];
        [lblPolicyNo setBackgroundColor:[UIColor clearColor]];
        [lblBeginDateTag setBackgroundColor:[UIColor clearColor]];
        [lblBeginDate setBackgroundColor:[UIColor clearColor]];
        [lblEndDateTag setBackgroundColor:[UIColor clearColor]];
        [lblEndDate setBackgroundColor:[UIColor clearColor]];
        [lblContinuePolicyNoTag setBackgroundColor:[UIColor clearColor]];
        [lblContinuePolicyNo setBackgroundColor:[UIColor clearColor]];
        [lblContinueInsStatusTag setBackgroundColor:[UIColor clearColor]];
        [lblContinueInsStatus setBackgroundColor:[UIColor clearColor]];
        [lblContinueInsDateTag setBackgroundColor:[UIColor clearColor]];
        [lblContinueInsDate setBackgroundColor:[UIColor clearColor]];
        
        
        lblInsuranceNameTag.font=[UIFont systemFontOfSize:14.0];
        lblInsuranceName.font=[UIFont boldSystemFontOfSize:13.0];
        lblPolicyNoTag.font=[UIFont systemFontOfSize:14.0];
        lblPolicyNo.font=[UIFont boldSystemFontOfSize:13.0];
        lblBeginDateTag.font=[UIFont systemFontOfSize:14.0];
        lblBeginDate.font=[UIFont boldSystemFontOfSize:12.0];
        lblEndDateTag.font=[UIFont systemFontOfSize:14.0];
        lblEndDate.font=[UIFont boldSystemFontOfSize:12.0];
        lblContinuePolicyNoTag.font=[UIFont systemFontOfSize:14.0];
        lblContinuePolicyNo.font=[UIFont boldSystemFontOfSize:14.0];
        lblContinueInsStatusTag.font=[UIFont systemFontOfSize:14.0];
        lblContinueInsStatus.font=[UIFont boldSystemFontOfSize:14.0];
        lblContinueInsDateTag.font=[UIFont systemFontOfSize:14.0];
        lblContinueInsDate.font=[UIFont boldSystemFontOfSize:14.0];
        
        
        lblInsuranceNameTag.text=@"险种:";
        lblPolicyNoTag.text=@"保单号:";
        lblBeginDateTag.text=@"起保日期:";
        lblEndDateTag.text=@"终保日期:";
        lblContinuePolicyNoTag.text=@"续保保单号:";
        lblContinueInsStatusTag.text=@"续保状态：";
        lblContinueInsDateTag.text=@"续保申请日期:";
        
        
        [self.contentView addSubview:lblInsuranceNameTag];
        [self.contentView addSubview:lblInsuranceName];
        [self.contentView addSubview:lblPolicyNoTag];
        [self.contentView addSubview:lblPolicyNo];
        [self.contentView addSubview:lblBeginDateTag];
        [self.contentView addSubview:lblBeginDate];
        [self.contentView addSubview:lblEndDateTag];
        [self.contentView addSubview:lblEndDate];
        [self.contentView addSubview:lblContinuePolicyNoTag];
        [self.contentView addSubview:lblContinuePolicyNo];
        [self.contentView addSubview:lblContinueInsStatusTag];
        [self.contentView addSubview:lblContinueInsStatus];
        [self.contentView addSubview:lblContinueInsDateTag];
        [self.contentView addSubview:lblContinueInsDate];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
